<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>

<html>
	<head>
		<title>员工离职说明</title>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<link rel="stylesheet" href="${path}/css/backsys/ctx.css">
		<script type="text/javascript" src="${path}/js/jquery.js"></script>
		<script language="javascript" type="text/javascript" src="${path}/DateUtil/WdatePicker.js"></script>
		
		<script type="text/javascript">
			function subs() {
				var d = $("#DimissionDate").val() ;
				var c = $("#DimissionCause").val() ;
				
				if(d=="" || c=="") {
					alert("请填写离职日期和离职说明") ;
				} else {
					var retVal = {"empNo":"${param.empNo}","dimissionDate":d,"dimissionCause":c}
					window.returnValue = retVal ;
					window.close() ;
				}   
			}
		</script>
		
	</head>

	<body>
		<div class="ctx">
			<table class="ow" width="70%">
				<tr> 
					<th height="30" colspan="2" align="left">员工离职说明</th>
				</tr>
				<tr>
					<td  width="100" align="right">离职日期：</td>
					<td  colspan="2"> 
						<input type="text" size="15" id="DimissionDate" name="DimissionDate" class="Wdate" readonly="readonly" onClick="WdatePicker()"/>
					</td>
				</tr>
				<tr>
					<td  width="100" align="right">离职说明：</td>
					<td  colspan="2">
						<textarea rows="5" cols="35" id="DimissionCause" name="DimissionCause">填写离职原因...</textarea>
					</td>
				</tr> 
				<tr>
					<td  colspan="3" align="center">
						<input type="button" onclick="subs();" value="添加离职说明"/>
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>
